package com.itheima.thread.Demo5;

public class Lock {
    public static void main(String[] args) {
        LockTicket lt = new LockTicket();
        Thread t1 = new Thread(lt,"窗口一");
        Thread t2 = new Thread(lt,"窗口二");
        Thread t3 = new Thread(lt,"窗口三");

        t1.start();
        t2.start();
        t3.start();
    }
}
